package terra.model.effect;

import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;

import terra.managers.LightManager;
import terra.model.Light;

public class BlowEffect extends AbstractEffect {

	int radius;
	Light l;
	public BlowEffect(int x,int y,int r,int g,int b, int rad,int time) {
		this.time = time;
		radius = rad;
		l = new Light(new Color(r,g,b), x, y, rad);
		LightManager.getInstance().getLights().add(l);
	}
	
	@Override
	public void draw(Graphics g) {
	}
	
	
	@Override 
	public void end() {
		LightManager.getInstance().getLights().remove(l);
		remove = true;
	}	

}
